//
//  BookShelfTableViewCell.m
//  NewBook
//
//  Created by dlios on 15-3-7.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import "BookShelfTableViewCell.h"

@implementation BookShelfTableViewCell

-(void)dealloc
{
    
    [_bookShelfImageView release];
    [_whiteView release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}


- (void)createSubViews
{
    //书架图片
    self.bookShelfImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 375, 94)];
    self.bookShelfImageView.image = [UIImage imageNamed:@"2.png"];
    [self.contentView addSubview:self.bookShelfImageView];
    
    //白色底框
    self.whiteView = [[UIView alloc] initWithFrame:CGRectMake(12, 0, 353, 79)];
    self.whiteView.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.whiteView];
    [_whiteView release];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
